package com.farm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.farm.common.R;
import com.farm.pojo.Commited;

import com.farm.pojo.EsParam;
import com.farm.pojo.Vo.PolicyEsVo;

import java.util.List;
import java.util.Map;

public interface EsCommitService {

    /**
     * 搜索框自动补全功能
     * @param prefix
     * @return
     */
    List<Map<String, String>>  getSuggestion(String prefix,String path);

    /**
     * 搜索数据
     * @param esParam
     * @return
     */
    List<PolicyEsVo> getPolicy(EsParam esParam);
}
